package com.ducks;

import com.behaviors.FlyWithWings;
import com.behaviors.Quack;

/**
 * @author SnowmanAndBee
 * @version <version>
 * <description>
 * @date 2021/10/24 - 22:32
 */
public class RedheadDuck extends Duck{
    public RedheadDuck() {
        flyBehavior = new FlyWithWings();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("I'm a redhead duck.");
    }
}
